home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 944 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: telepost.no!usenet
  2. From: Carsten Arnholm <ca@sesam.dnv.no>
  3. Newsgroups: comp.lang.c++,comp.lang.fortran
  4. Subject: Re: Calling FORTRAN from C++
  5. Date: 8 Jan 1996 16:22:24 GMT
  6. Organization: DNV
  7. Message-ID: <4crgc1$43u@nms.telepost.no>
  8. References: <4cr9np$2hr$1@mhadg.production.compuserve.com>
  9. NNTP-Posting-Host: hugin.sesam.dnv.no
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1 (Windows; I; 32bit)
  14.  
  15. Steve Harris <100016.2166@CompuServe.COM> wrote:
  16. >Hello,
  17. >Can anyone provide me with a simple example, with source code and 
  18. >an 'idiots' step guide, on how to call FORTRAN code from MS 
  19. >VISUAL C++? I have read through the section on mixed language 
  20. >programming in the 'Programming Techniques' manual for MS VISUAL 
  21. >C++, but can't even get the examples in that text to work. When I 
  22. >issue the following command to link the two object files:
  23. >
  24. >    link small test,,,,
  25. >
  26. >I get the following errror:
  27. >
  28. >    test.obj : fatal error L1101 : invalid object module
  29. >    Object file offset : 1 Record type : 4c
  30. >
  31. >A simple working example of a few lines would be much 
  32. >appreciated, especially showing how to compile/link and call the 
  33. >FORTRAN code from C++.
  34. >Thanks for your time :-)
  35. >Steve Harris
  36.  
  37.  
  38. Hi there,
  39.  
  40. I've done that. It is not so difficult. If you use the DejaNews search
  41. facility at
  42.  
  43. http://www.dejanews.com/forms/dnq.html
  44.  
  45. and search for my name : arnholm
  46.  
  47. you will find references to discussions I have participated in, some of
  48. which will answer your question.
  49.  
  50. Good luck :=]
  51.  
  52. Carsten Arnholm
  53. ca@sesam.dnv.no 
  54.  
  55.